package edu.chl.tda367.mynotes.ctrl;

import edu.chl.tda367.mynotes.core.MyNotes;

/*
 * A controller class that handles the different alignments that the user
 * chooses. Sends the information to the model.
 */
public class AlignCtrl implements ICtrl {
	
	public void execute(String s){
		
		if(s.equals("left")){
			MyNotes.getInstance().leftAlignText();
		} else if(s.equals("center")){
			MyNotes.getInstance().centerText();
		} else if(s.equals("right")){
			MyNotes.getInstance().rightAlignText();
		}
	}

	@Override
	public void execute() {

	}
}
	
